package com.bootMybatis.controller;

import java.io.UnsupportedEncodingException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bootMybatis.service.IXjBankMbankService;
import com.bootMybatis.utils.AjaxJson;

@RestController
@RequestMapping("/xjMbankBank")
public class XjBankMbankController {

	@Autowired
	private IXjBankMbankService xjBankMbankService;

	@RequestMapping(value = "MB_LIMIT_CONFIG", method = RequestMethod.POST)
	public AjaxJson MB_LIMIT_CONFIG(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.MB_LIMIT_CONFIG();
		return j;
	}

	@RequestMapping(value = "WB_LIMIT_CONFIG", method = RequestMethod.POST)
	public AjaxJson WB_LIMIT_CONFIG(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.WB_LIMIT_CONFIG();
		return j;
	}

	@RequestMapping(value = "MA_CUSTOM_INFO_LOG", method = RequestMethod.POST)
	public AjaxJson MA_CUSTOM_INFO_LOG(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.MA_CUSTOM_INFO_LOG();
		return j;
	}

	@RequestMapping(value = "ma_personal_acc", method = RequestMethod.POST)
	public AjaxJson ma_personal_acc(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.ma_personal_acc();
		return j;
	}

	@RequestMapping(value = "ma_personal_channel", method = RequestMethod.POST)
	public AjaxJson ma_personal_channel(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.ma_personal_channel();
		return j;
	}
	
	@RequestMapping(value = "t_payee", method = RequestMethod.POST)
	public AjaxJson t_payee(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.t_payee();
		return j;
	}
	
	@RequestMapping(value = "MA_WX_NOTICE", method = RequestMethod.POST)
	public AjaxJson MA_WX_NOTICE(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.MA_WX_NOTICE();
		return j;
	}
	
	@RequestMapping(value = "MA_WX_NOTICE_CO", method = RequestMethod.POST)
	public AjaxJson MA_WX_NOTICE_CO(@RequestBody String params) {
		AjaxJson j = xjBankMbankService.MA_WX_NOTICE_CO();
		return j;
	}
	
	public static void main(String[] args) throws UnsupportedEncodingException {
		String s = "3-利随本清";
		byte[] b = s.getBytes("GBK");
		System.out.println(b.length);
	}
}
